package com.fpd.enums;

/**
 * 地址修复结果枚举
 *
 * @author Monster
 */
public enum AddressResultEnum {
	RESUT0("0", "技术无法修复"),
	RESUT1("1", "信息不全，无法修复"),
	RESUT2("2", "地址大范围修复"),
	RESUT3("3", "地址小范围修复"),
	RESUT4("4", "地址无变动"),
	RESUT5("5", "黑名单地址"),
	RESUT6("6", "手动修改"),
	RESUT7("7", "家户同址"),
	RESUT8("8", "程序分析不可发函"),
	RESUT9("9", "退件地址"),
	RESUT10("10", "质检修复");

    private String value;
    private String name;

    AddressResultEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByValue(String value) {
        for (AddressResultEnum ate : AddressResultEnum.values()) {
            if (ate.getValue().equals(value)) {
                return ate.getName();
            }
        }
        return "";
    }
}
